//
//  ServiceMediator.h
//  Pitch
//
//  Created by zhujinhui on 14-9-11.
//  Copyright (c) 2014年 zhujinhui. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NetworkResponse.h"

#define SERVICE_FINDIMAGELIST               @"findImageList"
#define SERVICE_DOLOGIN                     @"doLogin:password:"
#define SERVICE_DOREGISTER                        @"doRegisterWithUserAcct:userPwd:validateCode:"
#define SERVICE_DOSMSCODE                        @"doSmsCodeWithUserAcct:type:"


#define SERVICE_FINDOFFLINEWORK             @"findOfflineWorkWithInfoTypeId:cityId:countyId:pageIndex:pageSize:"
#define SERVICE_FINDEXPERIENCESHARE         @"findExperienceShareWithUserId:pageIndex:pageSize:"
#define SERVICE_FINDEXPERIENCESHAREEVAL     @"findExperienceShareEvalWithExperienceId:"
#define SERVICE_MYPUBLISHLIST               @"myPublishListWithUserId:pageIndex:pageSize:"

#define SERVICE_MYPUBLISHLIST               @"myPublishListWithUserId:pageIndex:pageSize:"

#define SERVICE_FINDSIGNUPSTUDENT           @"findSignupStudentWithWorkId:businessId:"
#define SERVICE_UPDATEUSERCBTN              @"updateUserCbtnWithUserIdCbtn:workId:"
#define SERVICE_MYSHOULDHIRELIST            @"myShouldHireListWithUserId:pageIndex:pageSize:"

#define SERVICE_FINDSTUDENTINFO             @"findStudentInfoWithUserId:"

#define SERVICE_FINDINCOMEEXPN              @"findIncomeExpnWithUserId:"

#define SERVICE_UPDATEONLINESIGNUP          @"updateOnlineSignupWithUserId:workId:"

#define SERVICE_ADDOFFLINEWORK              @"addOfflineWorkWithWork:"

#define SERVICE_UPDATESTUDENTINFO           @"updateStudentInfoWithStudent:"

#define SERVICE_ADDEXPRSHARE                @"addExprShareWithUserId:content:"

#define SERVICE_FINDACCTBLNC                @"findAcctBlncWithUserId:"

#define SERVICE_ADDMISSED                   @"addMissedWithUserId:businessId:"
//online work
#define SERVICE_ADDONLINEWORK               @"addOnlineWorkWithOnlineWork:"

#define SERVICE_ADDBUSINESSEVAL             @"addBusinessEvalWithBusinessId:userId:type:workId:"
//experience ,praise
#define SERVICE_ADDPRAISECOUNT              @"addPraiseCountWithExperienceId:"

#define SERVICE_ADDEXPRSHAREEVAL            @"addExprShareEvalWithUserId:content:experienceId:"

@protocol ServiceMediatorDelegate;


@interface ServiceMediator : NSOperation

@property (nonatomic,copy)NSString *serviceName;
@property (nonatomic,copy)NSString *serviceUrl;
@property (nonatomic,copy)NSArray *paramsList;

@property (nonatomic,weak) id<ServiceMediatorDelegate> mDelegate;

-(id)initWithService:(NSString *)service delegate:(id<ServiceMediatorDelegate>) delegate;


@end


@protocol ServiceMediatorDelegate <NSObject>

-(void)serviceMediator:(ServiceMediator *) service resultDidFetched:(NetworkResponse *)response;

@end

